import request from '@/utils/request'

// 获取列表
export const getInformApi = (params) => {
    return request({
        url: 'content/notice',
        method: 'get',
        params
    })
}
// 获取列表详情 / 数据回显
export const getInformListApi = (id) => {
    return request({
        url: 'content/notice/' + id,
        method: 'get',
    })
}
// 新增
export const getNoticeApi = (data) => {
    return request({
        url: 'content/notice',
        method: 'post',
        data
    })
}
// 编辑
export const getEditNoticeApi = (data) => {
    return request({
        url: '/content/notice/' + data.id,
        method: 'put',
        data
    })
}
// 删除
export const getDelNoticeApi = (id) => {
    return request({
        url: '/content/notice/' + id,
        method: 'DELETE',
    })
}